package com.android.lovingpet.mine.myInformation;

import android.os.Bundle;
import android.util.Log;
import com.android.lovingpet.bean.JsonAccount;
import com.android.lovingpet.common.Back;
import com.android.lovingpet.bean.Account;
import com.android.lovingpet.util.CallbackStore;
import com.android.lovingpet.util.HttpUtil;
import com.android.lovingpet.util.MyHttp;
import com.android.lovingpet.util.URLStore;
import com.android.lovingpet.util.Utility;
import com.google.gson.Gson;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;

/**
 * Created by ikata on 2018/2/25.
 */

public class MyinformationModel{

    public void changeInfo(String name, int gender, String synopsis, String city, Back back) {
        Map<String, String> params = new HashMap<>();
        params.put("name", name);
        params.put("gender", gender + "");
        params.put("synopsis", synopsis);
        params.put("city", city);
        MyHttp.getInstance().postAsync(Utility.getJSessionId(), URLStore.PERSON_INFO_UPDATE, params,
                new CallbackStore.CallbackNon<>(back));
    }
}
